package cn.yujiago.miaosha.service;

import cn.yujiago.miaosha.dto.Result;
import cn.yujiago.miaosha.entity.User;

import javax.servlet.http.HttpServletResponse;

public interface UserService {

    // 登录
    Result<User> login(HttpServletResponse response, User user);

    // 根据token从redis中查询用户信息
    User getByToken(HttpServletResponse httpServletResponse, String token);

}
